home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_02_10
/
2n10010a
< prev
next >
Wrap
Text File
|
1991-07-22
|
966b
|
28 lines
/****************************************************************************/
/*
/* FLATLOAD.H -- Declarations for the FlatLoad linear executable loader
/*
/* Written by Walter Oney
/*
/****************************************************************************/
#ifndef FLATLOAD_H
#define FLATLOAD_H
/* Structure describing initial state of 32-bit program: */
typedef struct
{ /* 32-bit program state */
unsigned long eip; /* 16:32 address of main entry point */
unsigned short cs;
unsigned long esp; /* 16:32 initial stack address */
unsigned short ss;
} STATE32, FAR *LPSTATE32; /* 32-bit program state */
/* Function prototypes: */
extern BOOL FAR PASCAL FlatLoad(LPSTR lpFileName, LPSTATE32 lpState);
extern VOID FAR PASCAL FlatUnload(LPSTATE32 lpState);
extern long far _cdecl FlatCall(LPSTATE32 lpState, int nBytes, ...);
#endif